<%@ page import="net.amsoft.iservice.isso.hibernate.IBroker" %>
<%@ page import="net.amsoft.iservice.isso.service.ISSOService" %>
<%@ include file="base.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
	// Service URLs
	String contactURL = "#";
	String forwardingURL = "#";
	
	// Get IBroker Data
	IBroker oIBroker = ISSOService.getIBroker(request.getServerName());
	if (oIBroker!=null)
	{
		String synonym = oIBroker.getContactURL();
		contactURL = synonym.substring(0, synonym.lastIndexOf('/'));
		synonym = oIBroker.getForwardingURL();
		forwardingURL = synonym.substring(0, synonym.lastIndexOf('/'));
	}

%>

<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><bean:message key="title.activate" /></title>
<link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />
</head>
<%
if(request.getQueryString() == null || request.getQueryString() == "")
{
%>
	<body>
<%
}
else
{
%>
	<body onload="document.ActivateForm.iname.focus();document.ActivateForm.iname.value='=';">
<%
}
%>

<center>
<table cellspacing=25 border=0 cellpadding=0 width=800>
		<%@ include file="leftMenu.jsp" %>
		<td width=605 valign=top>
		<form name="ActivateForm" action="/isso/AuthenticateIname" method="POST">
		<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr><td align="left" colspan="2" height="23px"><img src="<%=imagePath%>/tab-click-isso.jpg" border="0" height="23px" 	onmouseover="this.src='<%=imagePath%>/tab-rollover-isso.jpg'" 	onmouseout="this.src='<%=imagePath%>/tab-click-isso.jpg'" /><a href="<%=contactURL%>"><img src="<%=imagePath%>/tab-noclick-contact.jpg" border="0" height="23px" 	onmouseover="this.src='<%=imagePath%>/tab-rollover-contact.jpg'" 	onmouseout="this.src='<%=imagePath%>/tab-noclick-contact.jpg'" /></a><a href="<%=forwardingURL%>"><img src="<%=imagePath%>/tab-noclick-forwarding.jpg" border="0" height="23px" 	onmouseover="this.src='<%=imagePath%>/tab-rollover-forwarding.jpg'" 	onmouseout="this.src='<%=imagePath%>/tab-noclick-forwarding.jpg'" /></a></td></tr>
			<tr>
				<td valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="270px">
					<tr height="45">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999"><img src="<%=imagePath%>/title_isso_login.gif" /></td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
					<tr height="">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" valign="top" >
						<table width="250" border="0" bgcolor="#CCCCCC">
							<!-- 
							<tr>
								<td colspan="2" align="right" height="52px" >
									<b class="blue-smalltext"><b style="font-size:14px;"><bean:message key="label.service"/>&nbsp;&nbsp;&nbsp;</b></b>
								</td>
							</tr>
							-->
							<tr>
								<td width="10px"></td>
								<td height="27px" class="black-smalltext"></td>
							</tr>
							<tr>
				                 <td width="10px"></td>
							 	<td  class="blue-smalltext"><html:errors /></td>
							</tr>
							<tr>
				                 <td width="10px"></td>
							 	<td  class="blue-smalltext"><bean:message key="label.activation"/></td>
							</tr>
							<tr>
								<td height="8px" colspan="2" valign="bottom"><img height="2px"
									src="<%=imagePath%>/dotted-line.gif" /></td>
							</tr>
							<tr>
				                <td width="10px"></td>
								<td height="8px"></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<%
								if(request.getQueryString() == null || request.getQueryString() == "")
								{
								%>
									<td height="32px" class="black-smalltext"><bean:message
									key="label.no.actiavation.token" /> </td>
								<%
								}
								else
								{
								%>
								<td height="32px" class="black-smalltext"><bean:message
									key="label.useriname" /> <input type="text" name="iname" size="22" 
									maxlength="255" class="textbox">&nbsp; <input type="image"
									src="<%=imagePath%>/button-submit.jpg" name="submit_btn"
									onclick="ActivateForm.submit();" align="middle">
								</td>
									
								<td>
									<INPUT type="hidden" name="actToken" value="<%=request.getQueryString()%>"> 
								</td>
								<%
								}
								%>
								
							</tr>
							<!-- 
							<tr>
								<td height="2px" colspan="2"><img
									src="<%=imagePath%>/dotted-line.gif" /></td>
							</tr>
							-->
							<tr>
								<td width="10px"></td>
								<td height="125px" class="black-xsmalltext"></td>
							</tr>
						</table>
						</td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>
					<tr height="10">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999"></td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
				</table>
				</td>
				<td width=25><img src="<%=imagePath%>/white-square.gif" /></td>
				<td width=270 height="304" valign=top><img
					src="<%=imagePath%>/related-news.gif?<%=dt.getTime()%>" width="270" height="304" /><br>
				</td>
			</tr>
			
		</table>
		</form>
		</td>
		<!-- 
		<td background="<%=imagePath%>/grey-bg.gif" width=290 valign=top><img
			src="<%=imagePath%>/related-news.gif?<%=dt.getTime()%>" width="290" /><br>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td colspan=2></td>
		-->		
	</tr>
</table>
</center>
</body>
</html>
